package iagovsothello.online.server;

import java.util.Comparator;

public class RecordPointComparator implements Comparator<Record> {

	public int compare(Record a, Record b) 
	{
		if (a.getPoints() == b.getPoints())
		{
			if (a.getTotalDisks() == b.getTotalDisks())
				return 0;
			else if (a.getTotalDisks() > b.getTotalDisks())
				return -1;
			else
				return 1;
		}
		else if (a.getPoints() > b.getPoints())
			return -1;
		else
			return 1;
	}

	
}
